
<link rel="stylesheet" href="<@baseUrl url='/static/comm/plugins/dtree/dtree.css'/>">
<link rel="stylesheet" href="<@baseUrl url='/static/comm/plugins/dtree/font/dtreefont.css'/>">
<script src="<@baseUrl url='/static/js/util/util.js'/>"></script>
<script type="text/javascript">
    AppComm.include.load("<@baseUrl url='/static/comm/js/manager/roleManagerForm.js'/>","js")
</script>

<div class="layui-tab-item layui-show">
    <br>
    <div class="layui-tab-item layui-show">
        <div class="roleManagerForm_box"></div>
    </div>
</div>

<script id="roleManagerForm_template" type="text/html">
    <form class="layui-form" action="" style="height: 355px;">
        <div class="layui-tab-item layui-show" style="width:692px;margin: 0 auto;">
            <input type="hidden" id="id" value="{{id}}" lay-verify="id">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label layui-required">角色名称</label>
                    <div class="layui-input-inline">
                        <input type="text" id="roleName" name="roleName" lay-verify="required" placeholder="请输入角色名称" autocomplete="off" class="layui-input" value="{{roleName}}">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label layui-required">所属组织</label>
                    <div class="layui-input-inline" style="margin-top: 10px;">
                        <input type="hidden" id="groupId" name="groupId" lay-verify="groupId" autocomplete="off" value="{{groupId}}">
<#--                        <span style="display:none" id="groupNameInput">-->
                            <ul id="groupName" class="dtree" data-id="0" ></ul>
<#--                            <input type="text" id="groupName" name="groupName" placeholder="请选择组织" autocomplete="off" class="layui-input" value="{{groupName}}">-->
<#--                        </span>-->
<#--                        <span style="display:none; margin-top: 10px;" id="groupNameShow">{{groupName}}</span>-->
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label layui-required">排序号</label>
                    <div class="layui-input-inline">
                        <input style="width:512px;" type="text" id="orderId" name="orderId" lay-verify="required|number" placeholder="请输入序号" autocomplete="off" class="layui-input" value="{{orderId}}" >
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">说明</label>
                    <div class="layui-input-inline">
                        <textarea style="width: 512px;" placeholder="请输入内容" id="comment" name="comment" lay-verify="comment" class="layui-textarea">{{comment}}</textarea>
                    </div>
                </div>
            </div>
            <br>
            <div class="layui-form-item" style="text-align: center;">
                <div class="layui-inline">
                    <button type="submit" class="layui-btn layui-btn-default layui-btn-sm" lay-submit lay-filter="saveBtn">提交</button>
<#--                    <@hasPermission key="roleManager:save" html='<a id="saveBtn" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="saveBtn">提交</a>'/>-->
                    <button class="layui-btn layui-btn-primary layui-btn-sm" id="cancelBtn">取消</button>
                </div>
            </div>
        </div>
    </form>
</script>